// import Layout from '@/layout'
const Layout = () => import('@/layout')
export default [
  {
    path: '/b',
    component: Layout,
    redirect: '/b/data',
    name: '数据',
    meta: { title: '数据', icon: 'dashboard', id: 1 },
    children: [{
      path: 'data',
      name: 'b数据',
      component: () => import('@/views/b/data/index'),
      meta: { title: '数据', icon: '', id: 2 }
    }]
  },
  {
    path: '/b/goods',
    redirect: '/b/goods/list',
    component: Layout,
    name: '商品管理',
    meta: { title: '商品管理', icon: 'dashboard', id: 3 },
    children: [{
      path: 'list',
      name: 'list',
      component: () => import('@/views/b/goods/list.vue'),
      meta: { title: '商品列表', icon: '', id: 4 }
    }, {
      path: 'stock',
      name: 'stock',
      component: () => import('@/views/b/goods/stock.vue'),
      meta: { title: '库存管理', icon: '', id: 5 }
    }, {
      path: 'category',
      name: 'category',
      component: () => import('@/views/b/goods/category.vue'),
      meta: { title: '商品分类', icon: '', id: 6 }
    },
    // {
    //   path: 'brand',
    //   name: 'brand',
    //   component: () => import('@/views/b/goods/brand.vue'),
    //   meta: { title: '品牌管理', icon: '', id: 7 }
    // },
    {
      path: 'commission',
      name: 'commission',
      component: () => import('@/views/b/goods/commission.vue'),
      meta: { title: '普通商品佣金设置', icon: '', id: 8 }
    }]
  },
  {
    path: '/b/order',
    redirect: '/b/order/detail',
    component: Layout,
    meta: { title: '订单管理', icon: 'dashboard', id: 9 },
    children: [{
      path: 'detail',
      name: 'orderDetail',
      component: () => import('@/views/b/order/index.vue'),
      meta: { title: '订单管理', icon: 'dashboard', id: 10 }
    }]
  },
  {
    path: '/b/salesman',
    redirect: '/b/salesman/detail',
    component: Layout,
    meta: { title: '业务员管理', icon: 'dashboard', id: 11 },
    children: [
      {
        path: 'detail',
        name: 'salesmanDetail',
        component: () => import('@/views/b/salesman/index.vue'),
        meta: { title: '业务员管理', icon: 'dashboard', id: 12 }
      }
    ]
  },
  {
    path: '/b/shop',
    redirect: '/b/shop/shopList',
    component: Layout,
    name: 'Shop',
    meta: { title: '店铺管理', icon: 'dashboard', id: 13 },
    children: [{
      path: 'shopList',
      name: 'shopList',
      component: () => import('@/views/b/shop/shopList.vue'),
      meta: { title: '店铺列表', icon: '', id: 14 }
    }, {
      path: 'apply',
      name: 'apply',
      component: () => import('@/views/b/shop/apply.vue'),
      meta: { title: '申请店铺', icon: '', id: 15 }
    }]
  },
  {
    path: '/b/cash',
    component: Layout,
    redirect: '/b/cash/detail',
    meta: { title: '提现管理', icon: 'dashboard', id: 16 },
    children: [
      {
        path: 'detail',
        component: () => import('@/views/b/cash/index.vue'),
        meta: { title: '提现管理', icon: 'dashboard', id: 17 }
      }
    ]
  },
  {
    path: '/b/live',
    component: Layout,
    redirect: '/b/live/index',
    meta: { title: '直播管理', icon: 'dashboard', id: 22 },
    children: [
      {
        path: 'index',
        component: () => import('@/views/b/live/index.vue'),
        meta: { title: '直播间管理', icon: 'dashboard', id: 23 }
      }
    ]
  },
  {
    path: '/b/message',
    component: Layout,
    redirect: '/b/message/detail',
    meta: { title: '系统消息', icon: 'dashboard', id: 18 },
    children: [
      {
        path: 'detail',
        component: () => import('@/views/b/message/index.vue'),
        meta: { title: '系统消息', icon: 'dashboard', id: 19 }
      }
    ]
  },
  {
    path: '/b/authority',
    component: Layout,
    redirect: '/authority/detail',
    meta: { title: '权限管理', icon: 'dashboard', id: 20 },
    children: [
      {
        path: 'detail',
        component: () => import('@/views/b/authority/index.vue'),
        meta: { title: '权限管理', icon: 'dashboard', id: 21 }
      }
    ]
  }
]
